package com.suoluo.zenadmin.dao;

import java.util.Date;

import net.paoding.rose.jade.annotation.DAO;
import net.paoding.rose.jade.annotation.SQL;

import com.suoluo.zenadmin.vo.RequestLog;


@DAO
public interface RequestLogDAO {

	@SQL("insert into tb_request_log(time,ip,url,host,agent,length,cost,referer,method) " +
	"values(:1.time,:1.ip,:1.url,:1.host,:1.agent,:1.length,:1.cost,:1.referer,:1.method)")
	public void addRequestLog(RequestLog log);
	
	@SQL("delete from tb_request_log where time < :1")
	public void deleteRequestLog(Date time);
	
//	private Date time;
//	
//	private String ip;
//	
//	private String url;
//	
//	private String host;
//	
//	private String agent;
//	
//	private int length;
//	
//	private long cost;
//	
//	private String referer;
//	
//	private String method;
}
